package com.zmn.oms.business.interfaces.master;

import com.zmn.oms.common.dro.normal.master.MasterPartInfoDRO;
import com.zmn.oms.common.dro.normal.master.MasterOrderPartInfoDRO;
import com.zmn.oms.common.dro.normal.master.OrderPartDetailDRO;
import com.zmn.oms.common.exception.OmsBaseException;

/**
 * @author sunlife
 * @date:2021/7/29 3:44 下午
 * description:
 */
public interface MasterPartBService {

    /**
     * 获取师傅本月配件信息
     * @param masterId 师傅ID
     * @return 配件信息
     */
    MasterPartInfoDRO getMasterPartInfo(Integer masterId) throws OmsBaseException;

    /**
     * 获取师傅配件列表信息
     * @param masterId
     * @param type
     * @return
     */
    MasterOrderPartInfoDRO listMonthPartInfo(Integer masterId, String date, Integer type) throws OmsBaseException;

    /**
     * 获取订单配件详情
     * @param orderId
     * @return
     */
    OrderPartDetailDRO getOrderPartDetail(Long orderId) throws OmsBaseException;
}
